﻿<?php echo $header; ?>

<div id="bd" role="main">
    <div id="yui-main">
        <div id="register" class="main-module">
            <div class="hd"><h2>注册会员</h2></div>
            <div class="bd">
            <div class="tip">送餐服务目前仅限于景田、梅林、莲花北、香梅香蜜片区。</div>
            <form id="form-register" class="form" action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="register">
                <?php if ($error_warning) { ?>
                <div class="warning alert"><?php echo $error_warning; ?></div>
                <?php } ?>
                <div class="section">
                    <ul class="detail">
                        <li>
                            <label>邮箱</label> <input type="input" name="email" class="text" value="<?php echo $email; ?>">
                            <?php if ($error_email) { ?>
                            <span class="error"><?php echo $error_email; ?></span>
                            <?php } ?>
                        </li>
                        <li>
                            <label>&nbsp;</label> <span style="font-size:11px;color:#6AA525">电子邮箱将被用作用户名</span>
                        </li>
                        <li>
                            <label>姓名</label> <input type="input" name="firstname" class="text" value="<?php echo $firstname; ?>">
                            <?php if ($error_firstname) { ?>
                            <span class="error"><?php echo $error_firstname; ?></span>
                            <?php } ?>
                        </li>
                        <li><label>性别</label> <input type="radio" name="sex"> 男 <input type="radio" name="sex"> 女</li>
                        <li style="display:none;">
                            <label>地址</label> <input type="input" name="address_1" class="text" value="<?php echo $address_1; ?>">
                            <?php if ($error_address_1) { ?>
                            <span class="error"><?php echo $error_address_1; ?></span>
                            <?php } ?>
                        </li>
                        <li>
                            <label>电话</label> <input type="input" name="telephone" class="text" value="<?php echo $telephone; ?>">
                            <?php if ($error_telephone) { ?>
                            <span class="error"><?php echo $error_telephone; ?></span>
                            <?php } ?>
                        </li>
                        <li>
                            <label>密码</label> <input type="password" name="password" class="text" value="<?php echo $password; ?>">
                            <?php if ($error_password) { ?>
                            <span class="error"><?php echo $error_password; ?></span>
                            <?php } ?>
                        </li>
                        <li>
                            <label>确认密码</label> <input type="password" name="confirm" class="text" value="<?php echo $confirm; ?>">
                            <?php if ($error_confirm) { ?>
                            <span class="error"><?php echo $error_confirm; ?></span>
                            <?php } ?>
                        </li>
                        <?php if ($agree) { ?>
                        <li><input type="checkbox" name="agree" value="1" checked="checked" />我已经阅读并同意网站条款</li>
                        <?php } else { ?>
                        <li><input type="checkbox" name="agree" value="1" /> 我已经阅读并同意<a href="index.php?route=common/info/agreement">用户协议</a></li>
                        <?php } ?>
                        <!---<li><input type="checkbox" name="newsletter"> 我希望通过电邮或手机接收优惠券、促销信息</li>--->
                    </ul>
                </div>
                <div class="form-btn clearfix">
                    <a href="./" class="clear">返回 Returm</a>
                    <a href="javascript:void();" onclick="$('#form-register').submit();" class="next">下一步 Next</a>
                </div>
            </form>
            </div>
            <div class="ft"></div>
        </div>
    </div>
</div>
<?php echo $footer; ?>

